package indi.cc.demo.validator.model;


import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

public class ValidatorModel {
    @NotBlank(message = "GUID不能为空")
    private String guid;

    @Range(max = 150, message = "年龄不能超过{max}岁")
    private int age;

    public String getGuid() {
        return guid;
    }

    public void setGuid(String guid) {
        this.guid = guid;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "ValidatorModel{" +
                "guid='" + guid + '\'' +
                ", age=" + age +
                '}';
    }
}
